<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>页顶</title>
    <link rel="stylesheet" type="text/css" href="../CSS/Header.css">
    <link rel="stylesheet" type="text/css" href="../CSS/LRCSS.css">
    <script type="text/javascript" src="../JS/LGRE.js" defer="defer"></script>
</head>
<body>
<div class="header">
    <div class="header_1">
        <ul id="header_1_1">
            <li onclick="window.location='../index.jsp'">首页</li>
            <li onclick="window.location='./../PAGES/News_Type.jsp'">新闻分类</li>
            <li onclick="window.location='./../PAGES/Allnews.jsp'">全部新闻</li>
        </ul>
        <ul id="header_1_2">
            <li class="unLogin" onclick="CBRegister()"><span>注册</span></li>
            <li class="unLogin" onclick="CBLogin()"><span>登录</span></li>
            <li class="Logining" style="display: none" onclick="LGExit()"><span>退出</span></li>
            <li class="AdminLogin" style="display: none"><span onclick="window.location='../ADMIN/Admin.jsp'">后台管理</span></li>
        </ul>
    </div>
    <div class="header_2">
    <span style="float: left;font-family: 楷体" onclick="window.location='../index.jsp'"><img src="../IMGS/牛.png" height="40px" alt=""/>牛马新闻中心<img src="../IMGS/马.png" height="40px"/></span>
        <div id="H-right">
            <form action="../PAGES/Search_result.jsp" method="get">
                <button style="float: right" type="submit" id="sub">搜索</button>
                <input style="float: right" id="check" type="text" placeholder="请输入您要搜索的内容..." value="">
                <script>
                    document.getElementById("sub").onclick=function () {
                        var check = document.getElementById("check").value;
                        localStorage.setItem("check",check);
                    }
                </script>
            </form>
        </div>
    </div>
</div>
    <div id="MC"></div>
    <div id="Login">
    <span id="Lx" style="font-size: 34px">x</span>
    <img src="../IMGS/boji.jpg" alt="Avatar" width="30%" style="border-radius: 50%"><br/><br/>
    <span>用户名</span><br/>
    <input type="text" id="Uname" name="Uname" placeholder="请输入用户名"/><br/>
    <span>密码</span><br/>
    <input type="password" id="Upassword" name="Upass" placeholder="请输入密码"/>
    <input type="button" id="Loginsub" value="登录"/>
    <input type="button" id="gtre" onclick="GBRegister()" value="去注册"/><br/>
    <span id="LGMSG" style="color: red"></span>
    </div>
    <div id="Register">
    <span id="Rx" style="font-size: 34px">x</span>
    <img src="../IMGS/cat.jpeg" alt="Avatar" width="30%" style="border-radius: 50%"><br/><br/>
    <span>&nbsp;&nbsp;用户名：</span><br/>
    <input type="text" id="RUname" name="Uname" placeholder="请输入用户名(小于10位)"/><br/>
    <span>&nbsp;&nbsp;密码：</span><br/>
    <input type="password" id="RUpassword" name="Upass" placeholder="请输入密码（6-16位）"/><br/>
    <span>&nbsp;&nbsp;确认密码：</span><br/>
    <input type="password" id="QRUpassword" name="Upass" placeholder="请输入密码"/><br/>
    <span>&nbsp;&nbsp;邮箱：</span><br/>
    <input type="text" id="RUmail" name="Umail" placeholder="请输入邮箱"/><br/>
    <span>&nbsp;&nbsp;验证码：</span><br/>
    <input type="text" id="YZ" name="Umail" placeholder="请输入验证码" style="width: 50%"/>
    <input type="button" id="code" onclick="cc()" style="width: 40%;" title='点击更换验证码'/><br/>
    <input type="button" id="Registersub" value="注册"/>
    </div>
</body>
</html>